package org.xxxy;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.logging.Logger;

@RestController
public class ProviderController {

    private static final Logger logger = Logger.getLogger(ProviderController.class.getName());
    @Value("${server.port}")
    private String serverPort;

   @GetMapping(value = "/provider/hello")
    public String hello() {
        logger.info("provider hello");
        return "hello world from port:" + serverPort;
    }


}
